package com.iotechn.unimall.data.mapper.mymapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.iotechn.unimall.data.domain.UserDO;
import com.iotechn.unimall.data.mapper.IMapper;
import com.iotechn.unimall.data.model.Page;
import com.iotechn.unimall.mydata.domain.QuestionBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IQuestionMapper extends IMapper<QuestionBean> {
    Integer selectMaxId();

    public Page<QuestionBean> getQuestionList(
            IPage<QuestionBean> page,
            @Param("category") String category);

    Integer setBestAnswer(
            @Param("questionId") Integer questionId,
            @Param("answerId") Integer answerId);


}
